﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ElectronicCommerce.Framework.ServiceModel.WCF.BindingMessage
{

    [Serializable]
    [XmlRoot("message")]
    public class SerSecurityMessage
    {
        private bool establishSecurityContextField = true;

        private SerClientCredentialType clientCredentialTypeField = SerClientCredentialType.Basic;

        private bool negotiateServiceCredentialField = true;

        private string algorithmSuiteField = "Default";

        [XmlAttribute("establishSecurityContext")]
        public bool EstablishSecurityContext
        {
            get
            {
                return establishSecurityContextField;
            }
            set
            {
                establishSecurityContextField = value;
            }
        }

        [XmlAttribute("clientCredentialType")]
        public SerClientCredentialType ClientCredentialType
        {
            get
            {
                return clientCredentialTypeField;
            }
            set
            {
                clientCredentialTypeField = value;
            }
        }

        [XmlAttribute("negotiateServiceCredential")]
        public bool NegotiateServiceCredential
        {
            get
            {
                return negotiateServiceCredentialField;
            }
            set
            {
                negotiateServiceCredentialField = value;
            }
        }

        [XmlAttribute("algorithmSuite")]
        public string AlgorithmSuite
        {
            get
            {
                return algorithmSuiteField;
            }
            set
            {
                algorithmSuiteField = value;
            }
        }
    }
}
